<?PHP	
	require 'CURL.php';
	require 'config.php';
	
	$curl = new CURL();	
	$opts = array
	(
		CURLOPT_RETURNTRANSFER => true, 
		CURLOPT_FOLLOWLOCATION => true,
		CURLOPT_SSL_VERIFYHOST	=> false,
		CURLOPT_SSL_VERIFYPEER	=> false
	);	
	$curl->addSession('https://oauth.vk.com/access_token?client_id=' . $VKAppID . '&client_secret=' . $VKAppKey . '&grant_type=client_credentials', $opts);	
	$result = $curl->exec();	
	echo $result;
	
	$curl->clear();	
?>